Einhugur macOS Bridge plugin.

NSAlert.ShowsSuppressionButton Property

Specifies whether the alert includes a suppression checkbox, which you can employ to allow a user to opt out of seeing the alert again.

ShowsSuppressionButton as Boolean {Read and Write}

Remarks

The default value of this property is false, which specifies the absence of a suppression checkbox in the alert. Set the value to true to show a suppression checkbox in the alert.
By default, a suppression checkbox has the title, “Do not show this message again.” In macOS 11.0 and later, if the alert displays multiple buttons that prompt the user to make a choice, the title is “Do not ask again.” To customize it, use the checkbox’s title property, as follows:


alert.SuppressionButton.Title = "Ekki sýna aftur"



Image showing how Message text. Information text, buttons and suppression button comes on macOS Big Sur:

See Also

NSAlert Class